package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

/**
 * 作者：SimGa
 * 日期：2021/1/6
 * 时间：16:28
 * 包名：com.vitabuybuy.tv.dto
 */
public class BiddingDetailDto {
    /**
     * thumbnail : http://106.55.47.138/attachment/jpg/3510/764_12612.jpg
     * images : http://106.55.47.138/attachment/jpg/7666/765_16768.jpg;http://106.55.47.138/attachment/jpg/2486/766_20804.jpg;http://106.55.47.138/attachment/jpg/6472/767_24790.jpg
     * name : {"EN":"卫衣","CN":"卫衣","MA":"卫衣"}
     * id : 62
     */

    private ProductBean product;
    /**
     * salePrice : 299.0
     * id : 324
     * specifications : {"EN":"orange L","CN":"橙色 L","MA":"orange L"}
     * stocks : 500
     */

    private GoodsBean goods;
    private double currentPrice;
    private double securityDeposit;
    private double startingPrice;
    private int cycle;
    private int salesQuantity;
    private boolean enabled;
    private boolean bought;
    private boolean remind;
    private long remainingTime;
    private int quotationQuantity;
    private int buysQuantity;
    private double scope;
    private String name;
    private String startTime;
    private int id;
    private int bidRecordQuantuty ;
    private String endTime;
    private String status;
    private GoodsDetailsDto.StoreBean store;

    public boolean isRemind() {
        return remind;
    }

    public void setRemind(boolean remind) {
        this.remind = remind;
    }

    public int getBidRecordQuantuty() {
        return bidRecordQuantuty;
    }

    public void setBidRecordQuantuty(int bidRecordQuantuty) {
        this.bidRecordQuantuty = bidRecordQuantuty;
    }

    public boolean isBought() {
        return bought;
    }

    public void setBought(boolean bought) {
        this.bought = bought;
    }

    public int getSalesQuantity() {
        return salesQuantity;
    }

    public void setSalesQuantity(int salesQuantity) {
        this.salesQuantity = salesQuantity;
    }

    public int getBuysQuantity() {
        return buysQuantity;
    }

    public void setBuysQuantity(int buysQuantity) {
        this.buysQuantity = buysQuantity;
    }

    public int getQuotationQuantity() {
        return quotationQuantity;
    }

    public void setQuotationQuantity(int quotationQuantity) {
        this.quotationQuantity = quotationQuantity;
    }

    public GoodsDetailsDto.StoreBean getStore() {
        return store;
    }

    public void setStore(GoodsDetailsDto.StoreBean store) {
        this.store = store;
    }

    public double getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public double getSecurityDeposit() {
        return securityDeposit;
    }

    public void setSecurityDeposit(double securityDeposit) {
        this.securityDeposit = securityDeposit;
    }

    public double getStartingPrice() {
        return startingPrice;
    }

    public void setStartingPrice(double startingPrice) {
        this.startingPrice = startingPrice;
    }

    public int getCycle() {
        return cycle;
    }

    public void setCycle(int cycle) {
        this.cycle = cycle;
    }

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public long getRemainingTime() {
        return remainingTime;
    }

    public void setRemainingTime(long remainingTime) {
        this.remainingTime = remainingTime;
    }

    public double getScope() {
        return scope;
    }

    public void setScope(double scope) {
        this.scope = scope;
    }

    public String getName() {
        return LanaugeUtils.returnStrByLocation(name);
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public static class ProductBean {
        private String thumbnail;
        private String images;
        private String name;
        private int id;
        private String description;
        private boolean favorites;

        public boolean isFavorites() {
            return favorites;
        }

        public void setFavorites(boolean favorites) {
            this.favorites = favorites;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getThumbnail() {
            return thumbnail;
        }

        public void setThumbnail(String thumbnail) {
            this.thumbnail = thumbnail;
        }

        public String getImages() {
            return images;
        }

        public void setImages(String images) {
            this.images = images;
        }

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }

    public static class GoodsBean {
        private double salePrice;
        private int id;
        private String specifications;
        private int stocks;
        private int salesQuantity;

        public int getSalesQuantity() {
            return salesQuantity;
        }

        public void setSalesQuantity(int salesQuantity) {
            this.salesQuantity = salesQuantity;
        }

        public double getSalePrice() {
            return salePrice;
        }

        public void setSalePrice(double salePrice) {
            this.salePrice = salePrice;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getSpecifications() {
            String[] split = specifications.split(";");
            specifications = "";
            for (String spec : split) {
                String str = LanaugeUtils.returnStrByLocation(spec);
                specifications = specifications.concat(str).concat(";");
            }
            return specifications.isEmpty() ? specifications : specifications.substring(0, specifications.length() - 1);
        }

        public void setSpecifications(String specifications) {
            this.specifications = specifications;
        }

        public int getStocks() {
            return stocks;
        }

        public void setStocks(int stocks) {
            this.stocks = stocks;
        }
    }
}